package com.xiaoshuidi.cloud.module.member.framework.ocr;

import com.aliyun.ocr_api20210707.Client;
import com.xiaoshuidi.cloud.module.member.service.card.OcrClientConfig;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration(proxyBeanMethods = false)
@EnableConfigurationProperties(OcrClientConfig.class)
public class OcrConfiguration {

    @Bean
    public Client ocrClient(OcrClientConfig config) {
        return config.ocrClient();
    }
}
